class Contrast {

  /// 监测是否需要更新APP程序
  /// * [currentVersion] 必填|String|当前系统版本号
  /// * [onlineVersion] 必填|String|线上版本号
  static bool contrastVersion(String currentVersion, String onlineVersion) {
    int comparisonResults = Comparable.compare(onlineVersion, currentVersion);
    if(comparisonResults > 0){
      return true;
    } else {
      return false;
    }
  }
}